From ed630ed53cdb1b4d1382b3c34d0a447482d609fb Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Fri, 13 Feb 2004 23:09:46 +0000 Subject: [PATCH] (kill-new): Put yank-handler property on the entire string. --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 4fa209f161e..8017878dd2a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1842,7 +1842,8 @@ may access and use elements from the kill-ring directly, the STRING argument should still be a \"useful\" string for such uses." (if (> (length string) 0) (if yank-handler - (put-text-property 0 1 'yank-handler yank-handler string)) + (put-text-property 0 (length string) + 'yank-handler yank-handler string)) (if yank-handler (signal 'args-out-of-range (list string "yank-handler specified for empty string")))) -- 2.30.2